remove cache

This commit is contained in:
Matthew K. Fu JuYuan 2012-07-26 15:44:53 +08:00
parent 9c1eef6ce4
commit c4722d0d2f
6 changed files with 281 additions and 8 deletions

View File

@ -15,8 +15,8 @@ gem 'jquery-ui-rails'
gem 'kaminari', :git => 'git://github.com/amatsuda/kaminari.git'
gem "memcached", "~> 1.4.3"
gem "memcache-client"
# gem "memcached", "~> 1.4.3"
# gem "memcache-client"
gem 'mini_magick'
gem 'mongoid'

View File

@ -115,8 +115,6 @@ GEM
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
memcache-client (1.8.5)
memcached (1.4.3)
mime-types (1.17.2)
mini_magick (3.4)
subexec (~> 0.2.1)
@ -310,8 +308,6 @@ DEPENDENCIES
jquery-rails
jquery-ui-rails
kaminari!
memcache-client
memcached (~> 1.4.3)
mini_magick
mongo_session_store-rails3
mongoid

View File

@ -3,7 +3,7 @@ class PagesController < ApplicationController
include ApplicationHelper
before_filter :get_item, :only => [:index_from_link, :show_from_link]
caches_page :index
# caches_page :index
def index
@item = Page.find_by_name('home')

View File

@ -23,7 +23,7 @@ Orbit::Application.configure do
# Only use best-standards-support built into browsers
config.action_dispatch.best_standards_support = :builtin
config.cache_store = :mem_cache_store
# config.cache_store = :mem_cache_store
config.assets.debug = true

222
public/index.html Normal file
View File

@ -0,0 +1,222 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>國立政治大學</title>
<link rel="shortcut icon" href="/assets/ncculogo.ico">
<meta name='keywords' content='政大,國立政治大學,政治大學' />
<meta name='description' content='' />
<!--[if lt IE 9]>
<script src="/assets/html5.js?body=1" type="text/javascript"></script>
<![endif]-->
<link href='/assets/bootstrap.css' rel='stylesheet' type='text/css' />
<link href='/assets/bootstrap-orbit.css' rel='stylesheet' type='text/css' />
<link href='/assets/style.css' rel='stylesheet' type='text/css' />
<link href='/gridfs/assets/stylesheet/file/4fea71095789b529a400001d/reset.css' rel='stylesheet' type='text/css' />
<link href='/assets/banner_nav.css' rel='stylesheet' type='text/css' />
<link href='/gridfs/assets/stylesheet/file/4fea71095789b529a400001c/default.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='/static/jquery.js'></script>
<script type='text/javascript' src='/assets/bootstrap.js'></script>
<script type='text/javascript' src='/assets/jquery.tinyscrollbar.min.js'></script>
<script type='text/javascript' src='/assets/jquery.isotope.min.js'></script>
<script type='text/javascript' src='/assets/orbit-bar-member.js'></script>
<script type='text/javascript' src='/assets/orbit_bar.js'></script>
<script type='text/javascript' src='/assets/orbit-bar-search.js'></script>
<script type='text/javascript' src='/static/jquery.cycle.all.latest.js'></script>
<script type='text/javascript' src='/static/kernel.js'></script>
<script type='text/javascript' src='/assets/event.js'></script>
</head>
<body>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><body><div id="wrapper">
<div id="header" class="header">
<h1 id="logo" class="ini_heading page_logo" name="logo_1">
<a href="/">國立政治大學</a><span>National Chengchi University</span>
</h1>
<div id="nav" class="header_nav page_sub_menu">
<ul class="nav_1">
<li>
<a title="Students" href="../../../Students">在校學生</a><span class="line"> | </span>
</li>
<li>
<a class="nav2" href="../../../announcement?tag_id=alumni">校友</a><span class="line"> | </span>
</li>
<li>
<a class="nav3" href="../../../announcement?tag_id=employee">教職員工</a><span class="line"> | </span>
</li>
<li><a class="nav4" href="../../../announcement?tag_id=guest">訪客</a></li>
</ul>
<ul class="nav_2">
<li>
<a href="#">網站地圖</a><span class="line"> | </span>
</li>
<li>
<a class="mail" href="#">郵件信箱</a>
<ul class="nav_menu2">
<li class="mail">郵件信箱</li>
<li><a href="http://nccu.edu.tw" target="_blank">教職員生</a></li>
<li><a href="http://alumni.nccu.edu.tw/" target="_blank">校友信箱</a></li>
</ul>
</li>
</ul>
</div>
<nav id="nav2" class="site_menu menu"><ul class="page_menu">
<li class="">
<a href="/About"><span>關於政大</span></a><span class="dot"></span><ul class="site_menu2 page_menu">
<li class=""><a href="http://info.nccu.edu.tw/epaper/"><span>政大校訊</span></a></li>
<li class=""><a href="/About/President"><span>吳思華校長</span></a></li>
<li class=""><a href="http://donation.nccu.edu.tw/"><span>捐政</span></a></li>
</ul>
</li>
<li class="">
<a href="/Academic"><span>學術單位</span></a><span class="dot"></span><ul class="site_menu2 page_menu">
<li class=""><a href="http://www.la.nccu.edu.tw/"><span>文學院</span></a></li>
<li class=""><a href="http://science.nccu.edu.tw/"><span>理學院</span></a></li>
<li class=""><a href="http://www.css.nccu.edu.tw/"><span>社會科學學院</span></a></li>
<li class=""><a href="http://law.nccu.edu.tw"><span>法學院</span></a></li>
<li class=""><a href="http://www.commerce.nccu.edu.tw"><span>商學院</span></a></li>
<li class=""><a href="http://www.foreign.nccu.edu.tw"><span>外國語文學院</span></a></li>
<li class=""><a href="http://comm.nccu.edu.tw"><span>傳播學院</span></a></li>
<li class=""><a href="http://www.ocia.nccu.edu.tw"><span>國際事務學院</span></a></li>
<li class=""><a href="http://www.educ.nccu.edu.tw"><span>教育學院</span></a></li>
</ul>
</li>
<li class="">
<a href="/Research"><span>研究中心</span></a><span class="dot"></span><ul class="site_menu2 page_menu">
<li class=""><a href="http://iir.nccu.edu.tw/"><span>國際關係研究中心</span></a></li>
<li class=""><a href="http://esc.nccu.edu.tw/"><span>選舉研究中心</span></a></li>
<li class=""><a href="http://333.nccu.edu.tw/"><span>第三部門研究中心</span></a></li>
<li class=""><a href="http://www.ccis.nccu.edu.tw/"><span>創新與創造力中心</span></a></li>
<li class=""><a href="http://cfcs.nccu.edu.tw/"><span>中國大陸研究中心</span></a></li>
<li class=""><a href="http://cfcs.nccu.edu.tw/"><span>台灣研究中心</span></a></li>
<li class=""><a href="http://hc.nccu.edu.tw/"><span>人文中心</span></a></li>
<li class=""><a href="http://www.alcd.nccu.edu.tw/"><span>原住民研究中心</span></a></li>
<li class=""><a href="/Research/CRC"><span>院屬研究中心</span></a></li>
</ul>
</li>
<li class=""><a href="/Administration"><span>行政單位</span></a></li>
<li class=""><a href="/Admission"><span>招生入學</span></a></li>
<li class=""><a href="/ITservices"><span>資訊服務</span></a></li>
</ul></nav><div id="banner_box">
<div id="banner" name="content_1" class="banner page_content">
<script type="text/javascript">
$(document).ready(function(){
$('#slideshow-banner_1').cycle({
delay: -1000,
fx: 'scrollLeft',
timeoutFn: getTimeout,
pager: '#banner_nav',
pagerAnchorBuilder: function(idx, slide) {
return "<li><a href='#'>sfdsfsf</a></li>";
}
});
});
</script><ul id="banner_nav" class="clear"></ul>
<div id="slideshow-banner_1"></div>
</div>
</div>
</div>
<div id="main_content" class="content">
<div class="content2">
<div class="topic_news">
<div class="topic_news2">
<div class="main_block">
<div class="main_content page_content" name="content_2" main="true"><div class="dymanic_load" path="/panel/news/widget/home_banner?inner=true&amp;category_id=&amp;tag_id=&amp;page=&amp;part_title="></div></div>
<div class="news_block2 page_content" name="content_20"><p>測試</p></div>
<div class="news_block2 page_content" name="content_21"></div>
<div class="news_block2 page_content" name="content_22"></div>
<div class="news_block2 page_content" name="content_23"></div>
<div class="news_block2 page_content" name="content_24"></div>
<div class="news_block2 page_content" name="content_25"></div>
<div class="news_block2 page_content" name="content_26"></div>
<div class="news_block2 page_content" name="content_27"></div>
<div class="news_block2 page_content" name="content_28"></div>
<div class="news_block2 page_content" name="content_29"></div>
</div>
<div class="sidebar ">
<div class="side_block2 page_content" name="content_7"></div>
<div class="side_block2 page_content" name="content_71"></div>
<div class="side_block2 page_content" name="content_72"></div>
<div class="side_block2 page_content" name="content_73"></div>
<div class="side_block2 page_content" name="content_74"></div>
<div class="side_block2 page_content" name="content_75"></div>
<div class="side_block2 page_content" name="content_76"></div>
<div class="side_block2 page_content" name="content_77"></div>
<div class="side_block2 page_content" name="content_78"></div>
<div class="side_block2 page_content" name="content_79"></div>
</div>
</div>
</div>
<div class="clear"></div>
<div class="post_panel">
<div class="post_panel2">
<div class="announcements page_content" name="content_3"><div class="dymanic_load" path="/panel/announcement/widget/bulletins_and_web_links?inner=true&amp;category_id=&amp;tag_id=&amp;page=&amp;part_title="></div></div>
<div class="events page_content" name="content_4"> <h2 class="h2 event_title">活動行事曆</h2>
<span class="number"></span>
<a class="links_prev disabled" href="">prev</a>
<a class="links_next" href="">next</a>
<div class="error_mag"></div>
<ul>
<li>
<div class="event_date">
<span class="mon"></span>
<span class="day"></span>
</div>
<a class="event_name" href="#" target="_blank"></a>
<div class="event_info"></div>
</li>
<li>
<div class="event_date">
<span class="mon"></span>
<span class="day"></span>
</div>
<a class="event_name" href="#" target="_blank"></a>
<div class="event_info"></div>
</li>
<li>
<div class="event_date">
<span class="mon"></span>
<span class="day"></span>
</div>
<a class="event_name" href="#" target="_blank"></a>
<div class="event_info"></div>
</li>
</ul>
</div>
</div>
</div>
<div class="clear"></div>
<div class="links_panel">
<div class="links_panel2">
<div class="adbanner1 page_content" name="content_5"><p>測測測測測測測測測測測測asdasdasdd</p></div>
<div class="quicklinks page_content" name="content_6"><div class="dymanic_load" path="/panel/web_resource/widget/home_list?inner=true&amp;category_id=&amp;tag_id=&amp;page=&amp;part_title="></div></div>
</div>
</div>
</div>
</div>
<div id="footer" class="footer page_footer">
<div class="copyright">
<p>本網站著作權屬於國立政治大學,請詳見使用規則。</p>
<p>總機電話02-29393091<br>傳真02-29379611<br>地址11605 台北市文山區指南路二段64號</p>
</div>
<div class="notice">
<a style="color: #ffc64c;" href="http://osa2.nccu.edu.tw/~military/csrc/" target="_blank">校園安全緊急通報</a> | 聯絡我們</div>
</div>
</div></body></html>
</body>
</html>

View File

@ -0,0 +1,55 @@
<!DOCTYPE HTML>
<html>
<head>
<!--[if lt IE 9]>
<script src="/assets/html5.js?body=1" type="text/javascript"></script>
<![endif]-->
<script src="/assets/jquery.js?body=1" type="text/javascript"></script>
<script src="/assets/jquery_ujs.js?body=1" type="text/javascript"></script>
<script src="/assets/module.js?body=1" type="text/javascript"></script>
<meta content="authenticity_token" name="csrf-param" />
<meta content="OTzet4ugPOFQgL3231FfdQJwIv42FZbcGdDO4YAplP4=" name="csrf-token" />
</head>
<body>
<h2 class="topic_title">校園新聞</h2>
<div class="btn-group topic_note">
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
更多+
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li>
<a href="/panel/news/front_end/news_bulletins?category_id=4f9d8dd644f3e222ba0000c9">焦點新聞</a>
</li>
</ul>
</div>
<div class="topic_prev">previous page</div>
<div class="topic_next">next page</div>
<ul id="topic_list">
<li>
<div class="news_img"><img alt="010512night_2" height="130" src="/gridfs/image/news_bulletin/image/4fb062771d41c808d1000018/010512night_2.jpg" width="290" /></div>
<h3 class="h3 news_title"><a href="/panel/news/front_end/news_bulletins/4fb062771d41c808d1000018?category_id=4f9d8dd644f3e222ba0000c9">企管系慶50年 誓言卓越領航未來</a></h3>
<p class="news_wrap"><p>校訊記者蕭郁蓉報導】慶祝成立50週年企管系12日晚上舉辦「風雲50卓越領航」系慶晚會各屆校友返家同樂在輕鬆的氣氛下敘舊並交流同時宣布產業合作實習計畫啟動。</p>
<p>企管系發出校友召集令席開60桌串連了50屆企管系友還有人專程遠道從美國、馬來西亞歸國共襄盛舉。校長吳思華肯定晚會具向心力和格局總統馬英九也特別賀電祝福活動圓滿感謝政大企管對管理教育的深耕。</p>
<p>晚會在歌聲中揭開序幕一聽到政大校歌前奏全場師生不約而同起立同唱。晚會由學士班校友會副會長毛仁傑與奧運跆拳道金牌得主、系友陳怡安共同主持席間陳怡安逐桌訪問各屆系友今年剛好也是許多20屆校友們50歲生日20屆系友都很開心能夠和企管系一起過生日。</p>
<p>晚會播放回顧影片〈後青春期的歲月〉播放第1屆至第50屆的照片讓系友重回青春歲月歷屆系主任也上臺象徵薪火相傳並注酒冰雕宣告「風雲50‧卓越領航」。校友傾力支持的產業實習合作計畫也在各產業召集人簽署下正式啟動將提供學弟妹更多實習機會。</p>
<p>尋找過往共同的驕傲回憶曾經參與文化盃合唱比賽、創下十連霸的班級也再度聚首演唱當年自選曲〈In Remembrance〉以及各年齡層系友都很熟悉的〈夜來香〉。指揮周品帆表示現在還記得當時身負文化盃重任心情既緊張又興奮畢業多年還能但與當年戰友一起重溫感動感到開心且榮幸。</p>
<p>企管系學士班校友會長、財信集團董事長謝金河說政大企管系就如同偉大的母親如果每年有100位學生如今也孕育了5000位系友。鼓勵後輩學弟妹不要忘記好好閱讀系慶專刊了解企管系的發展和使命未來不忘回饋母系。</p>
<p>歡慶企管系學士班成立50周年企研所校友會長、信義房屋董事長周俊吉、EMBA校友會理事長宋文琪、企家班校友會長廖宜彥、科技班校友會長邱天元、以及博士班校友、潤泰集團總裁尹衍樑也出席同歡</p>
<p>企管系主任蔡維奇表示企管系慶從去年開始籌備期間許多校友們鼎力支持大方贊助廣告、餐費、紅酒等還有更多企業校友踴躍返回母校分享經驗協助學弟妹與產業連結展現企管系大家庭的團結氣氛。期待未來能繼續攜手共創下一個更輝煌的50年。</p></p>
</li>
<li>
<div class="news_img"><img alt="News2" height="130" src="/gridfs/image/news_bulletin/image/4f9d96f644f3e222ba00012a/news2.jpg" width="290" /></div>
<h3 class="h3 news_title"><a href="/panel/news/front_end/news_bulletins/4f9d96f644f3e222ba00012a?category_id=4f9d8dd644f3e222ba0000c9">社科院舉辦碩博士班畢業生撥穗典禮</a></h3>
<p class="news_wrap"><p><span>【社會科學學院訊】為了讓所有畢業生都能親自參與撥穗過程社會科學學院6月5日畢業典禮舉行撥穗典禮吸引百位畢業生和家長踴躍參與綜合院館熱鬧非凡。所有畢業生都單獨接受系主任撥穗並由社科院長楊松齡頒發畢業證書。</span></p></p>
</li>
<li>
<div class="news_img"><img alt="03" height="130" src="/gridfs/image/news_bulletin/image/4f9d9a7544f3e222ba0001c6/03.jpg" width="290" /></div>
<h3 class="h3 news_title"><a href="/panel/news/front_end/news_bulletins/4f9d9a7544f3e222ba0001c6?category_id=4f9d8dd644f3e222ba0000c9">選後兩岸與經濟發展 專家籲勇於和世界接軌</a></h3>
<p class="news_wrap"><p>【校訊記者許瀚分報導】政大EMBA校友會23日邀請海基會副董事長高孔廉及經濟系教授林祖嘉談論「大選後的兩岸關係與臺灣經濟情勢」。兩位中國事務專家一致認為臺灣應勇於開放與世界接軌並盡早加入TPP(跨太平洋夥伴協議),提高臺灣經濟競爭力。</p></p>
</li>
</ul>
</body>
</html>