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

Entries with updated status not showing

Development and Programming

Noah Kuhn's avatar
Noah Kuhn
60 posts
15 years ago
Noah Kuhn's avatar Noah Kuhn

Hello,

I’m working on a site where there are two weblogs with a single relationship. One is “first lines” and the other is “other lines” A line is created as an entry and then other lines can be related to that master line. I’m using the SAEF for line entry.

I am submitting each “other line” through an extension that checks how many lines have already been written and related to the first line. After ten lines have been related, the extension runs a simple $DB->query($DB->update_string) to update all the lines to a new status.

Once all the lines have been set with the new status, they all show on a final page together.

The problem is that for some reason the relationships are being cached and when the statuses are updated and the lines presented, it only shows the first line (from the “first line” weblog) and the last line (the last line from the “lines” weblog), skipping the 9 in between. When I reset the relationship caches everything is fine.

Clear all caches when new entries are posted is on Dynamic weblog queries is off Using the submit_new_entry_start hook to run the check and the update EE 1.6.8

Why would the cache not be updating?

Moved to the Extensions forum by Moderator

       
Sue Crocker's avatar
Sue Crocker
26,054 posts
15 years ago
Sue Crocker's avatar Sue Crocker

Hi, Noah. Unfortunately we don’t provide support for third party extenion writing. Moving to the Extensions forum for additional community support.

       
Noah Kuhn's avatar
Noah Kuhn
60 posts
15 years ago
Noah Kuhn's avatar Noah Kuhn

Fair enough, I guess the question is relevant to the creators of the hooks. Using the extension hooks, shouldn’t the cache be refreshed when an entry is submitted? Is there a function that can be called in an extension to refresh the caches?

       

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.