ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Related Entries Caching

December 29, 2010 6:34pm

Subscribe [3]
  • #1 / Dec 29, 2010 6:34pm

    mklann

    14 posts

    I have a site that allows users to update weblog data from a standard form. But when they update, the original EE caching remains in tact. I am using related_entries tags in certain areas of the live site, and the content is not getting updated.

    I can see the fields in the DB that contain this caching data.

    I understand that I may cause performance issues but is there a way to disable the caching within the exp:weblog:entries tag without having to clear out those fields in the DB every time someone makes an update via a the form?

    Or, does someone have a better solution?

  • #2 / Dec 29, 2010 11:35pm

    John Henry Donovan

    12339 posts

    mklann,

    What version and build of EE are you using?
    Are you using any add-ons?

    I have a site that allows users to update weblog data from a standard form.

    Is this our out-of-the-box SAEF form which allows signed in users to add an entry but not update it?
    Or a different method entirely?

    In your global weblog preferences you have a settings to Clear all caches when new entries are posted. Would turning this off work for you?

  • #3 / Dec 30, 2010 12:18pm

    mklann

    14 posts

    Embarrassingly enough, we are running 1.6.7 - I have a few clients that are running on 2.0 but this site is so customized that it will be a huge overhaul to update.

    We built a php script that is posting to the database directly.  In many instances we needed to post information to 2 different weblogs at a time so SAEF proved to be too limiting.  We also send several email notifications via the script we’ve created. 

    I tried updating the setting on this page: Admin—> weblog administration—> global weblog preferences—> Clear all caches when new entries are posted. 

    But that didn’t seem to make any difference.

    I can see that there are a few additional fields in the DB that seem to store the related entries cached data.  When users initially fill out the form, this data is not populated.  It only gets updated when we go in via the EE admin and make an update.  I could set it to clear out the data every time they make a change via the online form but I wonder if that will drastically effect the website performance.

  • #4 / Dec 30, 2010 4:01pm

    Ingmar

    29245 posts

    I tried updating the setting on this page: Admin—> weblog administration—> global weblog preferences—> Clear all caches when new entries are posted. But that didn’t seem to make any difference.

    This should work, but you’re not posting entries the regulary, sneaking them in behind EE’s back, as it were, so there’s no way for EE to trigger a cache rebuild.

    I could set it to clear out the data every time they make a change via the online form but I wonder if that will drastically effect the website performance.

    I am afraid that is really your best option here, unless you consider disabling caching altogether.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases