php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #59047 Caching in SugarCRM 5.5
Submitted: 2010-01-26 12:44 UTC Modified: 2010-04-14 21:58 UTC
From: ossama dot gharib at yahoo dot com Assigned:
Status: Closed Package: WinCache (PECL)
PHP Version: 5.2.11 OS: Microsoft Windows Server 2008 R2
Private report: No CVE-ID: None
 [2010-01-26 12:44 UTC] ossama dot gharib at yahoo dot com
Description:
------------
- On Windows Server 2008 R2, I have installed SugarCRM 5.5 by using Microsoft's Web Platform Installer 2.0
- On SugarCRM 5.5, when I try to add a new field in a SugarCRM's module using Studio, the field is not reflected immediately.
- The following scenario would reproduce the bug:
  + Go to SugarCRM's local site, like http://localhost/sugar550
  + From top-navigation section, go to: Admin > Studio
  + Expand "Accounts" module (from the left-side menu)
  + Go to: Fields > "Add Field"
  + Create a new field, then press "Save"
  + The new field *should* be displayed in the fields' list
  + But, actually, it is *not* displayed, and could not be even accessed from layout's pages (EditView, DetailView)

Solution for now: I have commented the line in "php.ini" file for loading WinCache extension, to be like:

[PHP_WINCACHE]
;extension=php_wincache.dll

And after restarting IIS, the problem disappeared and I am able to add the field to SugarCRM's Studio, and the field is displayed immediately after saving it.

Please note, such problem was not happening when SugarCRM 5.2 gets installed using "Web Platform Installer".


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-01-26 13:00 UTC] don dot raman at microsoft dot com
Thank you for taking the time to write to us, but this is not
a bug.

The behaviour you are seeing is bu design. Here is how WINCACHE works:
1. The file is cached and stored in the cache.
2. If a file is changed, the changes will not take effect immediately.
3. WINCACHE cheks for file update as configured by INI directive wincache.chkinterval which takes the value of 30 seconds by default.
4. So the changes will be visible after 30 seconds.

Working this around:
1. If you are a developer you can use the API described at http://www.php.net/manual/en/function.wincache-refresh-if-changed.php to ensure that changes are picked up immediately.
2. Add the file name which is responsible for doing the edit as part of wincache.ignorelist INI directive.
 [2010-01-26 15:36 UTC] ksingla at microsoft dot com
Another work around is to configure check interval very short (eg 2 seconds). We are considering using file change notifications in future versions of wincache which will enable us to pick changes immediately.
 [2010-04-14 21:58 UTC] don dot raman at microsoft dot com
This bug has been fixed in SVN.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.

File Change Notification (FCN) has been implemented in SVN. This will be available as part of next release. This means if FCN is supported the files changed will get changed immediately. On a network share we will revert back to polling using wincache.chkinterval. FCN is enabled by default but can be disabled by directive wincache.fcndetect. If someone wants to grab a development copy and try this out it is available at http://sourceforge.net/projects/wincache/files/. Look underneath folder named 'Development'. The binaries are available only for NTS build of PHP.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Jul 18 07:01:26 2019 UTC