Jump to content

caching loaded json data?


brian914

Recommended Posts

I am building a php site and would like to keep all my page titles, copy, and certain image references inside a json file, so I can edit that info more easily and have it all in one place. I know how to load the json, but am wondering if there was a way to load it where it would only load once and then be stored in a variable that was available from any page. Maybe load it front he header include and store it in a session variable? I am pretty new to php, so hoping for some advice on how to do this best.

 

Thanks a lot!

 

Link to comment
https://forums.phpfreaks.com/topic/263875-caching-loaded-json-data/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.