Current time: 01-17-2021, 09:02 AM Hello There, Guest! (LoginRegister)

Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ultimate Wordpress Caching (not for the non-programmers)
02-03-2012, 05:19 AM (This post was last modified: 02-03-2012 05:24 AM by jarrod1937.)
Post: #5
RE: Ultimate Wordpress Caching (not for the non-programmers)
For #3, do you still check if the cache file exists or do you just serve it and assume it exists? Reason I ask, is if you do check if the file exists first, then technically you could just filemtime() and on getting false assume the file does not exists, otherwise it does. That would make it so you don't need a cron but still have the same overhead as before. If you do not check if it exists first, how do you handle it if it doesn't? Just curious, this is my first pass at my caching function, looking for ways to make it more efficient.
By the way, I'll probably post another version of the cache function soon. Learned recently that you can pass a callback function to ob_start. That will allow me to put all logic into a neat little function and just call ob_start('functionName'). Should make it easier to implement, as it could then be implemented as a simple include in the main index.php file.
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
RE: Ultimate Wordpress Caching (not for the non-programmers) - jarrod1937 - 02-03-2012 05:19 AM

Forum Jump:

User(s) browsing this thread: 1 Guest(s)