We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Loading entry data from file instead of db

Development and Programming

tobycatlin's avatar
tobycatlin
4 posts
13 years ago
tobycatlin's avatar tobycatlin

Hello Everybody,

I would like to be able to set an option on a entry that when set, serialises the entry object and writes it into a file. Then when the entry is accessed by the user the addon will check for the existence of the file and load it from disk instead of from the database. Essentially in exactly the same way that templates can be saved to file and superceed the template saved in the db. This requirement is because we deploy from source control and would like to be able to ‘release’ certain edits.

I imagine that this will require usage of hooks but even after looking at the docs i am not clear of what hook would do the job. Can anyone point me in the right direction?

thanks toby

       
Boyink!'s avatar
Boyink!
5,011 posts
13 years ago
Boyink!'s avatar Boyink!

I haven’t ever seen anyone do this EE - probably the best place to start would be http://devot-ee.com/add-ons/datagrab. If not directly for the featureset possibly as a way to figure out a coding approach.

       
tobycatlin's avatar
tobycatlin
4 posts
13 years ago
tobycatlin's avatar tobycatlin

I would have thought this would have already been done by a caching plugin, maybe that would later in the output process.

Do you know at what point the data is pulled out of the db and merged with the template?

thanks toby

       
Boyink!'s avatar
Boyink!
5,011 posts
13 years ago
Boyink!'s avatar Boyink!

Caching would be later in the process, after all variables & EE tags have been parsed.

Here’s a good doc on the overall parse order:

http://loweblog.com/downloads/ee-parse-order.pdf

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.