Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
DCR Preview temporary file names do not rotate
DevCat
We have a DCR, which has an associated preview tpl file. It generates html output with iwpt_output() call. In the DCR edit window, every time Preview button is clicked, a temporary file with the generated html content is generated in the workarea root directory. The file name is like zz_tst_[user id]__preview.txt. For some user, the number “n” never increases. It stays at 0 all the time. But for other users, this number rotates among 0, 1, and 2. Our iw.cfg file has configuration: preview_history_limit=3
All the users login as master role.
If the template file name stays the same, we can not see the latest change we made in the DCR, because the old version of the temporary file was returned and displayed in browser before the new version same name temporary was created in the backend file system. But this temporary file was always created correctly. It’s just too slow.
Does anyone know the course of this wield TeamSite behavior?
Find more posts tagged with
Comments
DevCat
When “Preview” button is pressed, the TeamSite server exports the html code generated by the tpl into a temporary file at:
......\WORKAREA\development
The file name format is like zz_tst_[user id]__preview.txt. The TeamSite server then returns this file to be displayed to user.
Since \iw-home\etc\iw.cfg has configuration:
preview_history_limit=3
the should rotate among 0,1, and 2. The problem is the temporary file name is not rotating for certain user. Sometime the server returns the old version the temporary file before it’s updated.
For each temporary file generated, a manifest file was also generated at:
......\WORKAREA\development\templatedata
The file name format is like: zz_tst_[user id]__manifest
Again, this should rotate among 0,1, and 2. But for some reason, there is a zz_tst_[user id]_3_manifest. This may be the reason why the temporary file name is not rotating.
After deleting all the manifest and temporary file, the problem disappears.