Note that there are some explanatory texts on larger screens.

plurals
  1. POMethods for caching PHP objects to file?
    primarykey
    data
    text
    <p>In ASPNET, I grew to love the Application and Cache stores. They're awesome. For the uninitiated, you can just throw your data-logic objects into them, and hey-presto, you only need query the database once for a bit of data. </p> <p>By far one of the best ASPNET features, IMO.</p> <p>I've since ditched Windows for Linux, and therefore PHP, Python and Ruby for webdev. I use PHP most because I dev several open source projects, all using PHP.</p> <p>Needless to say, I've explored what PHP has to offer in terms of caching data-objects. So far I've played with:</p> <ol> <li>Serializing to file (a pretty slow/expensive process)</li> <li>Writing the data to file as JSON/XML/plaintext/etc (even slower for read ops)</li> <li>Writing the data to file as pure PHP (the fastest read, but quite a convoluted write op)</li> </ol> <p>I should stress now that I'm looking for a solution that doesn't rely on a third party app (eg memcached) as the apps are installed in all sorts of scenarios, most of which don't have install rights (eg: a cheap shared hosting account).</p> <p>So back to what I'm doing now, <strong>is persisting to file secure?</strong> <code>Rule 1</code> in production server security has always been disable file-writing, but I really don't see any way PHP <em>could</em> cache if it couldn't write. Are there any tips and/or tricks to boost the security?</p> <p><strong>Is there another persist-to-file method that I'm forgetting?</strong></p> <p><strong>Are there any better methods of caching in "limited" environments?</strong></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload