Results 1 to 3 of 3

Thread: How to disable caching.

  1. #1
    prajeesh is offline Senior Member
    Join Date
    Jun 2009
    Posts
    64

    Default How to disable caching.

    Hi,

    I have written the following custom code in editviewdefs.php

    'customCode' =>"<input name='total_budget_c' id='total_budget_c' readonly size='30' maxlength='25' value='$total_budgeted' title='' tabindex='3' type='text'>",

    Here the value of the variable $total_budgeted is coming from the database. So I want to refresh this value each time I refresh the page. But the value remains same until i delete the files from the cache folder. How can I make the variable $total_budgeted refresh the value each time page is refreshed. Please advice me.

    Thanks,
    Prajeesh

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: How to disable caching.

    Hi Prajeesh

    You need to create a controller for your module and implement the function action_editview.
    Inside this function you can set the value for $this->bean->total_budgeted.
    Remember you need to create this field on either its own vardefs or extended vardefs.

    Then your customCode may looks like:
    PHP Code:
    'customCode' =>"<input name='total_budget_c' id='total_budget_c' readonly size='30' maxlength='25' value='{$fields.total_budgeted.value}' title='' tabindex='3' type='text'>"

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    prajeesh is offline Senior Member
    Join Date
    Jun 2009
    Posts
    64

    Default Re: How to disable caching.

    Yes It worked . Thanks a lot.

    Prajeesh
    Last edited by prajeesh; 2009-08-07 at 04:58 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Browser caching over HTTPS
    By knowmad in forum Help
    Replies: 0
    Last Post: 2009-07-29, 07:37 PM
  2. OpCode Caching on Plesk+IIS Server
    By alifnoon in forum Help
    Replies: 0
    Last Post: 2009-06-12, 05:11 AM
  3. Replies: 2
    Last Post: 2008-06-20, 08:36 PM
  4. No Caching means slow pages
    By sunside in forum Help
    Replies: 2
    Last Post: 2007-08-29, 07:04 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •